import request from '@/utils/request'

// 查询薪资变更列表
export function listSalaryChange(query) {
  return request({
    url: '/system/salaryChange/list',
    method: 'get',
    params: query
  })
}

// 查询薪资变更详细
export function getSalaryChange(id) {
  return request({
    url: '/system/salaryChange/' + id,
    method: 'get'
  })
}

// 新增薪资变更
export function addSalaryChange(data) {
  return request({
    url: '/system/salaryChange',
    method: 'post',
    data: data
  })
}

// 修改薪资变更
export function updateSalaryChange(data) {
  return request({
    url: '/system/salaryChange',
    method: 'put',
    data: data
  })
}

// 删除薪资变更
export function delSalaryChange(id) {
  return request({
    url: '/system/salaryChange/' + id,
    method: 'delete'
  })
}
